/**
 * <p>Copyright (c) 2016 深圳市鹏途交通科技有限公司</p>
 * <p>					All right reserved. 		 </p>
 * <p>项目名称 ： 	深圳公路信息资源整合及国省检日常化监管管理项目        </p>
 * <p>创建者   :	wy
 * <p>描   述  :  A2-02技术状况评定(表15)  </p>
 * <p>最后修改 :  $: 2017-4-18-下午3:50:01	wy   $     </p>
 * 
 */

package com.pengtu.gsj.entity.yh;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.pengtu.gsj.entity.app.Attachment;
import com.pengtu.gsj.entity.base.IdEntity;

@Entity
@Table(name = "T_YH_TECEVALUTION")
public class TecEvalution extends IdEntity {

	private static final long serialVersionUID = -6429870906188976336L;

	private Double totalFunds = 0.0; // 路桥隧检测经费

	private Double roadFunds = 0.0; // 道路路况检测经费

	private Double bridgeFunds = 0.0; // 桥梁检测经费

	private Double tunnelFunds = 0.0; // 隧道检测经费

	private Double other = 0.0; // 其他费用
	
	private String tecYear;
	
	private Integer bulletinNumber;   //检测文件数
	
	private List<Attachment> attachments;
	
	private String remark;
	
	public TecEvalution() {
	}

	@Column(name = "TOTALFUNDS")
	public Double getTotalFunds() {
		return totalFunds;
	}

	public void setTotalFunds(Double totalFunds) {
		this.totalFunds = totalFunds;
	}

	@Column(name = "ROADFUNDS")
	public Double getRoadFunds() {
		return roadFunds;
	}

	public void setRoadFunds(Double roadFunds) {
		this.roadFunds = roadFunds;
	}

	@Column(name = "BRIDGEFUNDS")
	public Double getBridgeFunds() {
		return bridgeFunds;
	}

	public void setBridgeFunds(Double bridgeFunds) {
		this.bridgeFunds = bridgeFunds;
	}

	@Column(name = "TUNNELFUNDS")
	public Double getTunnelFunds() {
		return tunnelFunds;
	}

	public void setTunnelFunds(Double tunnelFunds) {
		this.tunnelFunds = tunnelFunds;
	}

	@Column(name = "OTHER")
	public Double getOther() {
		return other;
	}

	public void setOther(Double other) {
		this.other = other;
	}

	@Column(name = "TECYEAR")
	public String getTecYear() {
		return tecYear;
	}

	public void setTecYear(String tecYear) {
		this.tecYear = tecYear;
	}

	@Transient
	public Integer getBulletinNumber() {
		bulletinNumber = attachments.size();
		return bulletinNumber;
	}

	public void setBulletinNumber(Integer bulletinNumber) {
		this.bulletinNumber = bulletinNumber;
	}

	@OneToMany(fetch = FetchType.LAZY)
	@JoinColumn(name = "PARTID")
	public List<Attachment> getAttachments() {
		return attachments;
	}

	public void setAttachments(List<Attachment> attachments) {
		this.attachments = attachments;
	}

	@Column(name = "REMARK")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	

}
